<template>
	<page-loading :show="list.length>0">
	<view class="wrap">
		<view class="height100 font-24 color-999 pad-a-34 ">请选择进入的公司</view>
		<view class="listScoll">
			<view class="list" v-for="(it, index) in list" v-if="it.isNeedShow" :key="index">
				<view class="flex">
					<view class="width-65">
						<view class="companyName pad-t-b-10">{{ it.companyname }}</view>
						<view class="storeName pad-t-b-10">{{ it.store_name ? '(' + it.store_name + ')' : '' }}</view>
					</view>
					<view class="width-35 u-text-right">
						<view v-if="returnExname(it.examine_status, it.role) === '进入公司'">
							<view class="btn-bg-yellow mt-30" v-if="!clicktrue" @click="$u.throttle(EnterCompany(index), 2000)">{{ returnExname(it.examine_status, it.role) }}</view>
								<view class="btn-bg-yellow mt-30" v-else>{{ returnExname(it.examine_status, it.role) }}</view>
						</view>
						<view :class="['mt-30', it.examine_status === 0 ? 'color-EB5C02' : 'color-999']" v-else>{{ returnExname(it.examine_status, it.role) }}</view>
					</view>
				</view>
			</view>
		</view>


		<view class="fixedBtn" style="bottom: 5rpx;"><view class=" btn-bg-yellow wid80" @click="$u.throttle(CreateEnterprise, 3000)">创建企业</view></view>
	</view>
	</page-loading>
</template>

<script src="./enterCompany.js"></script>
<style src="./enterCompany.scss" lang="scss"></style>
